import request from '../../../utils/request'

//获取任务列表
export const GetTasks=function GetTasks(data: any){
    return request({
        url:'/api/Practice/GetTasks',
        method:'get',
        params:data
    })
}

//获取单个任务(详情)
export const GetSingleTask=function GetSingleTask(data: any){
    return request({
        url:'/api/Practice/GetSingleTask',
        method:'get',
        params:data
    })
}
//新增任务
export const AddTask=(obj:any)=>{
    return request({
        method:'post',
        data:obj,
        url:'/api/Practice/AddTask'
    })
}
//禁用启用
export const BanTasks=(obj:any)=>{
    return request({
        method:'post',
        data:obj,
        url:'/api/Practice/BanTasks'
    })
}
//发布取消
export const PublishTasks=(obj:any)=>{
    return request({
        method:'post',
        data:obj,
        url:'/api/Practice/PublishTasks'
    })
}
//删除任务
export const DeleteTasks=(obj:any)=>{
    return request({
        method:'post',
        data:obj,
        url:'/api/Practice/DeleteTasks'
    })
}